use std::collections::HashSet;

pub fn new_count_distinct(input_str: &str) -> usize {
    let mut str_set: HashSet<&str> = HashSet::new();
    let strs: Vec<&str> = input_str.split(',').collect();
    for s in strs {
        str_set.insert(s);
    }
    str_set.len()
}
